package com.easycoding.framework.repository.support;

import java.io.Serializable;  

import javax.persistence.EntityManager;  
  
import org.springframework.data.jpa.repository.JpaRepository;  
import org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean;  
import org.springframework.data.repository.core.support.RepositoryFactorySupport;  

/**
 * 基础Repository工厂BEAN，生成基础Repository工厂
 * @author Wangjk
 * @Version 1.0
 * @Date 2013-3-22
 * @param <T>实体类型
 */
public class BaseJpaRepositoryFactoryBean<T extends JpaRepository<Object, Serializable>> extends JpaRepositoryFactoryBean<T, Object, Serializable> {  
  
	   
    @Override  
    protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) {
        return new BaseJpaRepositoryFactory(em);  
    }

}  
